package vip.zcn.mrn.util;



/**
 * @description: 脱敏工具类
 * @author: 张灿能
 * @create: 2024-05-16 15:30
 **/
public class MaskUtil {
    public static String maskIdCard(String idCard) {
        if (idCard == null || idCard.length() < 8) return idCard;
        return idCard.substring(0, 4) + "********" + idCard.substring(idCard.length() - 4);
    }
}
